<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>车型管理</title>
    <link href="{:C('WEB_URL')}Public/admin/style/base.css" rel="stylesheet" type="text/css" />
    <link href="{:C('WEB_URL')}Public/admin/style/master.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/base.js"></script>
    <script>
        function del(id){
            if(confirm('确定要删除记录吗?')){
                var url="{:C('WEB_URL')}/Admin/Auto/del/id/"+id;
                $.getJSON(url,function(data){
                    if(data['status']==1){
                        $(".list > tbody").children("#J_list"+data['data']).remove();
                    }else{
                        alert(data['info']);
                    }
           
                })
            }
        }

    </script>
</head>
<body>
    <div id="wrapper">
        <h2>汽车品牌<a href="{:U('edit_brand')}" class="but_add">添加</a></h2>
        <table class="list">
            <thead>
                <tr>
                    <th>id</th><th>名称</th><th>LOGO</th><th>描述</th>
                </tr>
            </thead>
            <tbody>
            <volist name='list' id='vo'>
                <tr align="center" id="J_list{$vo.brand_id}">
                    <td>{$vo.brand_id}</td>
                    <td>{$vo.brand_name}&nbsp;</td>
                    <td><img src="{:C('WEB_URL')}{$vo.brand_logo}"></td>
                    <td>{$vo.letter}&nbsp;</td>
                </tr>
            </volist>
            </tbody>
        </table>
        <p class="hr_10"></p>
        <div class="pages">{$page} </div>
    </div>

</body>
</html>